#ifndef ELEMENTTABLEFRAME_H
#define ELEMENTTABLEFRAME_H

#include <QFrame>
#include <QLabel>
#include <QListWidget>
#include <QButtonGroup>

#include "analytedatabase.h"

namespace Ui {
class ElementTableFrame;
}

class ElementTableFrame : public QFrame
{
    Q_OBJECT
    
public:
    explicit ElementTableFrame(QWidget *parent = 0,AnalyteDataBase *pAnalyteDataBase=NULL,int type=0);
    ~ElementTableFrame();
    
private:
    Ui::ElementTableFrame *ui;
    QLabel *pLabel;
    QListWidget *pListWidget;
    QButtonGroup *pButtonGroup;

    int type;//
    AnalyteDataBase *pAnalyteDataBase;

signals:
    void SIG_Clicked(int,QString);
    void SIG_ChooseEle(double ,QString);

private slots:
    void Onclicked(int);
    void on_pushButton_Ok_clicked();
};

#endif // ELEMENTTABLEFRAME_H
